<%@ Page Language="C#" MasterPageFile="~/Employee.master" AutoEventWireup="true" CodeFile="EditFaultDelivery.aspx.cs" Inherits="Pages_Employee_ManageFaultDeliveries_EditFaultDelivery" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
<asp:Label ID="Label1" runat="server" Font-Bold="True" Text="Edit Fault Delivery" CssClass="header"></asp:Label>
<br />
<br />
    <table border="1" class="table01">
        <tr>
            <td style="width: 125px; height: 20px">
                <strong>Deliverable ID</strong></td>
            <td style="height: 20px; width: 328px;">
                <asp:TextBox ID="txtDeliverableID" runat="server" ReadOnly="true"></asp:TextBox></td>
        </tr>
        <tr>
            <td style="width: 125px">
                <strong>Fault Date</strong></td>
            <td style="width: 328px">
                <asp:Calendar ID="cldFaultDate" runat="server"></asp:Calendar>
                <asp:CustomValidator ID="CustomValidator1" runat="server" ErrorMessage="Selected date is not valid" OnServerValidate="CustomValidator1_ServerValidate">*</asp:CustomValidator>
            </td>
        </tr>
        <tr>
            <td style="width: 125px; height: 20px;">
                <strong>Reason</strong></td>
            <td style="width: 328px; height: 20px;">
                <asp:TextBox ID="txtReason" runat="server" TextMode="MultiLine" Width="147px" Rows="2"></asp:TextBox>
                <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" 
                    ControlToValidate="txtReason" ErrorMessage="Reason is required">*</asp:RequiredFieldValidator>
            </td>
        </tr>
        <tr>
            <td style="width: 125px">
                <strong>Refund</strong></td>
            <td style="width: 328px">
                <asp:TextBox ID="txtRefundAmount" runat="server" Width="91px"></asp:TextBox>
                <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" 
                    ControlToValidate="txtRefundAmount" ErrorMessage="Refund is required">*</asp:RequiredFieldValidator>
                <asp:CustomValidator ID="CustomValidator2" runat="server" ControlToValidate="txtRefundAmount"
                    ErrorMessage="Refund must be a non-negative decimal number" OnServerValidate="CustomValidator2_ServerValidate">*</asp:CustomValidator>
            </td>
        </tr>
        <tr>
            <td style="width: 125px">
                <strong>Is Repaid</strong></td>
            <td style="width: 328px">
                <asp:CheckBox ID="cboIsRepaid" runat="server"/></td>
        </tr>
        <tr>
            <td style="width: 125px"></td>
            <td style="width: 328px">
                <asp:Button ID="btnSubmit" runat="server" Text="Submit" OnClick="btnSubmit_Click" />
                &nbsp; &nbsp;
                <asp:Button ID="btnReset" runat="server" Text="Reset" OnClick="btnReset_Click" /></td>
        </tr>
        <tr>
            <td colspan="2">
                <asp:ValidationSummary ID="ValidationSummary1" runat="server" HeaderText="Please check the following errors" />
                <br />
                <asp:Label ID="lblMessage" runat="server"></asp:Label></td>
        </tr>
    </table>
</asp:Content>

